home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
lib
/
ObjectTcl-1.1
/
otcl
/
otcl.tcl
< prev
next >
Wrap
Text File
|
1995-06-29
|
703b
|
25 lines
if {[catch {rename unknown otcl_old_unknown}] != 0} {
set otcl_old_unknown 0
} else {
set otcl_old_unknown 1
}
proc unknown {args} {
global otcl_old_unknown
if {[catch {otcl remoteObject [lindex $args 0]}] == 0} {
# The command addresses a remote object. A proxy object
# will have been created to takes it's place in the local process
return [uplevel 1 $args]
} else {
# The command doesn't address a remote object or this otcl
# isn't build for distributed processing
if {$otcl_old_unknown} {
return [uplevel 1 otcl_old_unknown $args]
} else {
return -code error "invalid command name \"[lindex $args 0]\""
}
}
}